import { acceptHMRUpdate, defineStore } from "pinia";
import { useLocalRef } from "@/framework/vue/hooks/state.ts";
import { toolsMenuItems } from "./index.menus.ts";


export const useToolsStore = defineStore('tools', () => {
  const activeKey = useLocalRef("tools.sider.activeKey", toolsMenuItems[0].children[0].key);

  return {
    activeKey: activeKey,
  };
});

if (import.meta.hot) {
  import.meta.hot.accept(acceptHMRUpdate(useToolsStore, import.meta.hot));
}
